/*
 * @Author: liu.lin liu.lin@hzleaper.com
 * @Date: 2024-03-25 09:01:57
 * @LastEditors: liu.lin liu.lin@hzleaper.com
 * @LastEditTime: 2024-07-19 17:19:10
 * @FilePath: \nest_temp\src\app.module.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Module, NestModule, MiddlewareConsumer, Logger } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { Loggers } from './middleware';
import { UploadModule } from './upload/upload.module';

import { ObtainSystemModule } from './obtain-system/obtain-system.module';
import { RedisCacheModuleModule } from './redis-cache-module/redis-cache-module.module';
import { UsersModule } from './users/users.module';



@Module({
  imports: [
    UploadModule,
    ObtainSystemModule,
    RedisCacheModuleModule,
    UsersModule,
  
 
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule implements NestModule {
  configure(consumer: MiddlewareConsumer) {
    consumer.apply(Loggers).forRoutes('*'); //三中写法
  }
}
